<div id="vista_login">

	<h1>Login</h1>
	
	<?php
	echo form_open('login/validar_usuario');
	echo form_input('rut','Rut','onfocus="if (this.value ==\'Rut\') {this.value=\'\';}"');
	echo form_password('password','Password','onfocus="if (this.value ==\'Password\') {this.value=\'\';}"');
	echo form_submit('submit','Entrar');
	?>
	
	<?php echo validation_errors('<p class="Error">');?>
        <?php if($this->session->flashdata('error')) : ?>
        <p><?=$this->session->flashdata('error')?></p>
	<?php endif; ?>
        
	
</div>

